<?php
defined('SYSPATH') OR die('No direct access allowed.');
/**
 * mstspesialisasi.php
 * @author ranuandra
 *
 * 26 Mei 2012 13:46:33
 *
 * 
 */
class Model_Mstspesialisasi extends ORM
{
	protected $_has_many = array(
							'pelamarpengalaman' 	=> array('model'	 => 'pelamarpengalaman'),
						);
	private $_field = array('spesialisasi');
	private $_form = array('spesialisasi' => '');
	
	public $rules = array(
					'spesialisasi' => array(
									array('min_length', array(':value', 0)),
								),
	);
	
	public function getField()
	{
		return $this->_field;
	}
	
	public function getForm()
	{
		return $this->_form;
		
	}
	
	public function create_data($values)
	{
	    return $this->values($values, $this->_field)->create();
	}	
}